﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerConsumeMaster.aspx.cs" Inherits="YWTSSys.Web.MachineSys.YWTSWeb.dy.CustomerConsumeMaster" %>
<%--客户消费--%>
<div class="pageContent" style="padding:0px 5px 5px 5px;">		   
        <table width="100%" border="0" cellpadding="0" cellspacing="0" >
            <tr>
                <td colspan="2" style=" padding:5px 0px;">
                    <div style="padding:5px; height:21px;border-width:1px ; border-style:solid; border-color: #CCC; line-height:21px; " >
                         操作说明:
                                        1.先查找客户（可按客户姓名,手机号码进行查找）
                                        2.再点相应的客户进行消费.
                                        3.最后别忘了点保存
                     </div>
                </td>
            </tr>
            <tr>                
                <td   valign="top">       
                    <div layoutH="40" style="border:solid 1px #CCC; background:#fff">           
		            <div class="pageHeader" >
                        <form id="pagerForm" method="post" action="YWTSWeb/dy/CustomerConsumeMaster.aspx" onsubmit="return navTabSearch(this);" >
                        <input type="hidden" name="orderField" value="<%=orderField %>" />
                        <input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
                        <input type="hidden" name="pageNum" value="1" />
                        <input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
    
                        <div class="searchBar">
                            <table class="searchContent">
                                <tr>               
                                    <td>
                                        客户查找： 
                                    </td>
                                    <td>
                                       <input name="sqlvalue" type="text" value="<%=sqlvalue %>"  />
                                    </td>
                                    <td>
                                         <div class="subBar">
                                            <ul>
                                                <li>
                                                    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                                                </li>
                                            </ul>
                                        </div>
                   
                                    </td>  
                                    <td>
                                        (最多显示20条)
                                    </td>    
                                    <td>
                                        <a  href="YWTSWeb/dy/AddCustomer.aspx"  class="button" target="dialog" rel="AddCustomer"   title="新增客户" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="250"><span>新增客户</span></a>
                                    </td>     
                                </tr>                                
                            </table>       
                        </div>
                        </form>
                    </div>
                    <div class="pageContent"  > 
                        <table class="table" width="100%"  layouth="112">
                            <thead>
                                <tr  > 
                                    <th width="100px"  <%=GetDataListOrder("客户名称") %>>客户名称</th>
                                    <th width="100px"  <%=GetDataListOrder("手机号码") %>>手机号码</th>                
                                    <th width="90px"  <%=GetDataListOrder("生日") %>>生日</th> 
                                    <th width="80" align="center"  <%=GetDataListOrder("AreaTag") %>>地区</th>
                                    <th width="80" align="center"  <%=GetDataListOrder("分组标志") %>>分组</th> 
                                    <th  align="center">消费</th> 
                                </tr>
                            </thead>                
                            <asp:repeater id="rpMenu" runat="server">
                                <HeaderTemplate>   
                                <tbody>   
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr  >                
				                        <td><%# Eval("客户名称")%></td>
				                        <td ><%# Eval("手机号码")%></td>
                                        <td>

                                            <%# Eval("生日") is DBNull ? "" :Convert.ToDateTime(Eval("生日")).ToString("yyyy-MM-dd")%>
                                        
                                        </td>
                                        <td><%# Eval("AreaTag")%></td>
                                        <td><%# Eval("分组标志")%></td>
                                        <td><a  class="btnEditMoney" href="YWTSWeb/dy/AddConsumerRecord.aspx?CustomerId=<%# Eval("客户ID") %>"  target="ajax" rel="CustomerConsumeAddFrom" >消费</a></td>                       
			                        </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </tbody>                         
                                </FooterTemplate>
                            </asp:repeater>
                        </table>   

                          
                    </div>
                    </div> 
                </td>
                <td valign="top"   style=" padding-left:5px;   background:#fff;" >
                    <div layoutH="40" style="width:255px; border-width:1px ; border-style:solid; border-color: #CCC; line-height:21px; " >
                         <div class="pageHeader" >
                            <div class="searchBar">
                                <table class="searchContent">
                                <tr>               
                                    <td>
                                        添加消费 
                                    </td>                                                  
                                </tr>                                
                            </table>
                            </div>
                         </div>
                         <div  id="CustomerConsumeAddFrom" >
                            请先选择客户进行消费
                         </div>
                    </div>
                                         
                </td>
            </tr>
            
        </table>	
</div>